Skip to content

Conversation

@shanejbrown
Copy link
Contributor

What does this PR do?

I have noticed in github that I am semi-frequently seeing the same "tests/test_buildrunner_files.py::test_serial_buildrunner_dir[/home/runner/work/buildrunner/buildrunner/tests/test-files-test-security-scan.yaml-args2-0]" test fail. The error is:

2024-11-04 17:14:20,504 INFO 2024-11-04T17:14:20Z FATAL Fatal error init error: DB error: failed to download vulnerability DB: OCI artifact error: failed to download vulnerability DB: failed to download artifact from any source: 1 error occurred:
2024-11-04 17:14:20,504 INFO * OCI repository error: 1 error occurred:
2024-11-04 17:14:20,504 INFO * GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 804.543µs, allowed: 44000/minute

This change will attempt to retry the test if it fails one time. On the 2nd failure it produce the failure as normal.

What issues does this PR fix or reference?

Previous Behavior

New Behavior

Merge requirements satisfied?

  • I have updated the documentation or no documentation changes are required.
  • I have added tests to cover my changes.
  • I have updated the base version in setup.py (if appropriate).

@shanejbrown shanejbrown merged commit aa5fea5 into adobe:main Nov 4, 2024
9 checks passed
_get_test_runs(test_dir=f"{TEST_DIR}/test-files/arm-arch", serial_tests=True),
_get_test_runs(test_dir=f"{TEST_DIR}/test-files/scan", serial_tests=False),
)
def test_serial_buildrunner_arm_dir(test_dir: str, file_name, args, exit_code):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no files for test_serial_buildrunner_arm_dir to run. So I removed this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants